﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品规格表
    /// </summary>
    public partial class corecmsfoodspec
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 品牌id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "corpId", IsNullable = false)]
        public Int32 corpId { get; set; }

        /// <summary>
        /// 门店id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "storeId", IsNullable = false)]
        public long storeId { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodId", IsNullable = false)]
        public Int64 foodId { get; set; }


        /// <summary>
        /// 商品编码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "number", IsNullable = true)]
        public String number { get; set; }

        /// <summary>
        /// 商品条形码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "code", IsNullable = true)]
        public String code { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "name", IsNullable = true)]
        public String name { get; set; }


        /// <summary>
        /// 规格名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "specName", IsNullable = false)]
        public String specName { get; set; }

        /// <summary>
        /// 规格单位
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "specUnitName", IsNullable = false)]
        public String specUnitName { get; set; }

        /// <summary>
        /// 是否上架
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "onLine", IsNullable = true)]
        public Boolean onLine { get; set; }

        /// <summary>
        /// 是否共享
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "isShare", IsNullable = true)]
        public Boolean isShare { get; set; }

        /// <summary>
        /// 是否可以改价
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "chgPrice", IsNullable = false)]
        public bool chgPrice { get; set; }

        /// <summary>
        /// 是否可以打折
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "disItem", IsNullable = false)]
        public bool disItem { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "isDelete", IsNullable = false)]
        public bool isDelete { get; set; }

        /// <summary>
        /// 0不称重，1称重
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "weighType", IsNullable = false)]
        public Int32 weighType { get; set; }

        /// <summary>
        /// 零售价
        /// </summary>
        [SugarColumn(ColumnDescription = "零售价", DecimalDigits = 2, IsNullable = true)]
        public System.Decimal posPrice { get; set; }


        /// <summary>
        /// 会员价
        /// </summary>
        [SugarColumn(ColumnDescription = "会员价", DecimalDigits = 2, IsNullable = true)]
        public System.Decimal vipPrice { get; set; }

        /// <summary>
        /// 售价3
        /// </summary>
        [SugarColumn(ColumnDescription = "售价3", DecimalDigits = 2, IsNullable = true)]
        public System.Decimal vvipPrice { get; set; }

        /// <summary>
        /// 售价4
        /// </summary>
        [SugarColumn(ColumnDescription = "售价4", DecimalDigits = 2, IsNullable = true)]
        public System.Decimal commPrice { get; set; }

        /// <summary>
        /// 成本价
        /// </summary>
        [SugarColumn(ColumnDescription = "成本价", DecimalDigits = 2, IsNullable = true)]
        public System.Decimal purPrice { get; set; }


        /// <summary>
        /// 配送价
        /// </summary>
        [SugarColumn(ColumnDescription = "配送价", DecimalDigits = 2, IsNullable = true)]
        public System.Decimal rmoPrice { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "modifyTime", IsNullable = true)]
        public Int64 modifyTime { get; set; }

        /// <summary>
        /// 称重商品plu
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "weighPlu", IsNullable = true)]
        public Int32? weighPlu { get; set; }

        /// <summary>
        /// 商品类型 1 标准商品 2 组合商品 3 成分商品 4 非库存商品  5 制单组合商品 6 虚拟商品
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "spuTypeId", IsNullable = false)]
        public Int32 spuTypeId { get; set; } = 1;

        /// <summary>
        /// 最低价
        /// </summary>
        [SugarColumn(ColumnDescription = "最低价", DecimalDigits = 4, IsNullable = true)]
        public System.Decimal minPrice { get; set; }

        /// <summary>
        /// 最高价
        /// </summary>
        [SugarColumn(ColumnDescription = "最高价", DecimalDigits = 4, IsNullable = true)]
        public System.Decimal maxPrice { get; set; }
    }
}
